package com.prs.crm.domain.oa;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * OA综合行政考勤查看
 * @author zhoupeng 2012-4-11
 *
 */
@Entity
@Table(name="oa_CheckWork")
public class CheckWork extends BaseEntity{
private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	/**
	 * 上午上班时间
	 */
	private Date morningInTime;
	/**
	 * 上午下班时间
	 */
	private Date morningOutTime;
	/**
	 * 下午上班时间
	 */
	private Date afternoonInTime;
	/**
	 * 下午下班时间
	 */
	private Date afternoonOutTime;
	
	private Integer morState1;
	private Integer morState2;
	
	private Integer aftState1;
	private Integer aftState2;
	
	private String remark;
	private String code;
	
	@ManyToOne
	private PersonTime personTime;
	
	private Date recordTime2; //查询时间段用的
	private Integer persons;
	public Integer getPersons() {
		return persons;
	}
	public void setPersons(Integer persons) {
		this.persons = persons;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Integer getMorState1() {
		return morState1;
	}
	public void setMorState1(Integer morState1) {
		this.morState1 = morState1;
	}
	public Integer getMorState2() {
		return morState2;
	}
	public void setMorState2(Integer morState2) {
		this.morState2 = morState2;
	}
	public Integer getAftState1() {
		return aftState1;
	}
	public void setAftState1(Integer aftState1) {
		this.aftState1 = aftState1;
	}
	public Integer getAftState2() {
		return aftState2;
	}
	public void setAftState2(Integer aftState2) {
		this.aftState2 = aftState2;
	}
	public Date getMorningInTime() {
		return morningInTime;
	}
	public void setMorningInTime(Date morningInTime) {
		this.morningInTime = morningInTime;
	}
	public Date getMorningOutTime() {
		return morningOutTime;
	}
	public void setMorningOutTime(Date morningOutTime) {
		this.morningOutTime = morningOutTime;
	}
	public Date getAfternoonInTime() {
		return afternoonInTime;
	}
	public void setAfternoonInTime(Date afternoonInTime) {
		this.afternoonInTime = afternoonInTime;
	}
	public Date getAfternoonOutTime() {
		return afternoonOutTime;
	}
	public void setAfternoonOutTime(Date afternoonOutTime) {
		this.afternoonOutTime = afternoonOutTime;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	
	public PersonTime getPersonTime() {
		return personTime;
	}
	public void setPersonTime(PersonTime personTime) {
		this.personTime = personTime;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Date getRecordTime2() {
		return recordTime2;
	}
	public void setRecordTime2(Date recordTime2) {
		this.recordTime2 = recordTime2;
	}
	
}
